package com.blockmeta.bbs.immodule.net.pojo;

import android.text.TextUtils;

import com.blockmeta.bbs.immodule.bean.beaninterface.IFriendsEntry;
import com.google.gson.annotations.SerializedName;

/**
 * @author AirThor
 * @date 2019/4/15.
 * 临时会话好友
 */
public class TemporaryFriendsResponse implements IFriendsEntry {

    @SerializedName("id")
    private long userId;

    @SerializedName("logo")
    private String avatar;

    @SerializedName("group_id")
    private int grade;

    @SerializedName("group_name")
    private String gradeTag;

    @SerializedName("date")
    private String registrationTime;

    @SerializedName("name")
    private String name;

    public String letter;

    private boolean checkedState;

    @Override
    public String getLetter() {
        return letter;
    }

    @Override
    public String getAvatar() {
        return avatar;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getRemarkName() {
        return name;
    }

    @Override
    public int getGrade() {
        return grade;
    }

    @Override
    public String getGradeTag() {
        return gradeTag;
    }

    @Override
    public String getRegistrationTime() {
        return TextUtils.isEmpty(registrationTime)?"0":registrationTime;
    }

    @Override
    public boolean getCheckedState() {
        return checkedState;
    }

    @Override
    public void setCheckedState(boolean checked) {
        checkedState = checked;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    @Override
    public long getChatGroupId() {
        return 0;
    }
}
